import { NextResponse } from 'next/server'

export async function GET() {
  // 这里应该返回真实的阿里云 STS 临时凭证
  // 在实际项目中，你需要调用阿里云 STS 服务获取临时凭证
  const mockSTSResponse = {
    accessKeyId: 'mock-access-key-id',
    accessKeySecret: 'mock-access-key-secret',
    stsToken: 'mock-sts-token',
    bucket: 'your-bucket-name',
    region: 'oss-cn-hangzhou',
    dir: 'uploads/'
  }

  return NextResponse.json(mockSTSResponse)
} 